<%@ include file="/common/taglibs.jsp" %>

<head>
    <title><fmt:message key="birth.zone.list.title"/></title>
    <meta name="heading" content="<fmt:message key='birth.zone.list.heading'/>"/>
    <meta name="menu" content="AdminMenu"/>
</head>

<div class="span10">
    <h2><fmt:message key="birth.zone.list.heading"/></h2>

    <div id="search">
        <form method="get" action="${ctx}/zBirthList.action" id="searchForm" class="form-search">
            <input type="text" size="20" name="q" id="query" value="${param.q}"
                   placeholder="Enter search terms..." class="input-medium search-query"/>
            <input type="submit" value="<fmt:message key="button.search"/>" class="btn"/>
        </form>
    </div>

    
    <display:table name="birthList" cellspacing="0" cellpadding="0" requestURI=""
                   defaultsort="1" id="births" pagesize="25" class="table table-condensed" export="false">
        <display:column property="motherName" escapeXml="true" sortable="true" titleKey="birth.motherName" style="width: 20%"
                        url="/createBirth.action?from=list" paramId="id" paramProperty="id"/>
        <display:column property="fatherName" escapeXml="true" sortable="true" titleKey="birth.fatherName"
                        style="width: 20%"/>
		<display:column property="status" escapeXml="true" sortable="true" title="Status"
                        style="width: 10%"/>                        
        <display:column property="sex" sortable="true" titleKey="birth.sex" style="width: 10%" autolink="true"
                        media="html"/>
        <display:column property="motherName" titleKey="birth.motherName" media="csv xml excel pdf"/>
        <display:column property="birthDate" sortable="true" titleKey="birth.birthDate" style="width: 25%" autolink="true"
                        media="html"/> 
        <display:column property="birthDate" titleKey="birth.birthDate" media="csv xml excel pdf"/>

        <display:setProperty name="paging.banner.item_name" value="birth record"/>
        <display:setProperty name="paging.banner.items_name" value="birth records"/>

        <display:setProperty name="export.excel.filename" value="Birth List.xls"/>
        <display:setProperty name="export.csv.filename" value="Birth List.csv"/>
        <display:setProperty name="export.pdf.filename" value="Birth List.pdf"/>
    </display:table>
</div>
